package com.rustic.server.vo.list;

import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.rustic.server.po.TravelPlan;

import java.util.Date;

/**
 * 表[travel_plan]对应VO类
 *
 * @author auto
 */

@Data
public class TravelPlanAdminListVO {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 关联乡村id
     */
    @ApiModelProperty(value = "关联乡村id", dataType = "int")
    private int rusticId;

    /**
     * 攻略名称
     */
    @ApiModelProperty(value = "攻略名称", dataType = "String")
    private String name;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称", dataType = "int")
    private String creator;

    /**
     * 封面
     */
    @ApiModelProperty(value = "封面", dataType = "String")
    private String cover;

    /**
     * 状态(1发布 2下架)
     */
    @ApiModelProperty(value = "状态(1发布 2下架)", dataType = "int")
    private int status;

    /**
     * 审核人名称
     */
    @ApiModelProperty(value = "审核人名称", dataType = "int")
    private String auditor;

    /**
     * 审核状态(1待审核 2审核通过 3审核不通过)
     */
    @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", dataType = "int")
    private int auditStatus;

    /**
     * 审核备注
     */
    @ApiModelProperty(value = "审核备注", dataType = "String")
    private String auditRemark;

    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间", dataType = "Date")
    private Date auditTime;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间", dataType = "Date")
    private Date publishTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", dataType = "Date")
    private Date updateTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    private Date createTime;

    public TravelPlanAdminListVO(TravelPlan travelPlan) {
        if (travelPlan != null) {
            BeanUtil.copyProperties(travelPlan, this);
        }
    }
}
